let db=require('../../sql/common')

 exports.getdetail=function(req,res){
    let query = req.query
    let sql=`SELECT * FROM list WHERE id=${query.id}`
    db.query(sql,(err,ressql)=>{
        if(err) return res.send({code:204,msg:'查询失败'})
        return res.send({code:200,data:ressql,msg:'查询成功'})
    })
    
}

